import socket

mysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysocket.connect(('data.pr4e.org', 80))
cmd = b'GET http://data.pr4e.org/romeo.txt HTTP/1.0\r\n\r\n'  # utf-8 ?
mysocket.sendall(cmd)

while True:
    data = mysocket.recv(4096)
    if len(data) < 1:
        break

    print(data.decode())
